﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AntUnion.FrameWork.Model.Models
{
    public class MiniProgramModels
    {
    }

    /// <summary>
    /// Jscode2session请求类
    /// </summary>
    public class Jscode2sessionReq
    {
        public string js_code { get; set; }
    }

    /// <summary>
    /// 登录凭证校验实体类
    /// </summary>
    public class Jscode2session
    {
        /// <summary>
        /// 用户唯一标识
        /// </summary>
        public string openId { get; set; }
        /// <summary>
        /// 会话密钥
        /// </summary>
        public string session_key { get; set; }
        /// <summary>
        /// 用户在开放平台的唯一标识符，在满足 UnionID 下发条件的情况下会返回
        /// </summary>
        public string unionId { get; set; }
        /// <summary>
        /// 错误码
        /// </summary>
        public int errcode { get; set; }
        /// <summary>
        /// 错误信息
        /// </summary>
        public string errmsg { get; set; }
        /// <summary>
        /// 是否注册
        /// </summary>
        public bool IsRegister { get; set; }
    }

    //public class MiniProgramInfo
    //{
    //    /// <summary>
    //    /// 小程序 appId
    //    /// </summary>
    //    public string AppId { get; set; }
    //    /// <summary>
    //    /// 小程序 appSecret
    //    /// </summary>
    //    public string AppSecret { get; set; }
    //    /// <summary>
    //    /// 商户号
    //    /// </summary>
    //    public string MchId { get; set; }
    //    /// <summary>
    //    /// 微信支付Key
    //    /// </summary>
    //    public string Key { get; set; }
    //}

    public class AccessToken
    {
        /// <summary>
        /// 小程序 appId
        /// </summary>
        public string access_token { get; set; }
        /// <summary>
        /// 小程序 appSecret
        /// </summary>
        public int expires_in { get; set; }
        /// <summary>
        /// 商户号
        /// </summary>
        public int errcode { get; set; }
        /// <summary>
        /// 微信支付Key
        /// </summary>
        public string errmsg { get; set; }
    }

    public class Unlimited
    {
        /// <summary>
        /// 内容类型
        /// </summary>
        public string contentType { get; set; }
        /// <summary>
        /// 返回的图片 Buffer
        /// </summary>
        public int buffer { get; set; }
        /// <summary>
        /// 商户号
        /// </summary>
        public int errcode { get; set; }
        /// <summary>
        /// 微信支付Key
        /// </summary>
        public string errmsg { get; set; }
    }

    public class UnlimitedQRCodeModel
    {
        /// <summary>
        /// 内容类型
        /// </summary>
        public string scene { get; set; }
    }

    public class WxPhoneNumber
    {
        /// <summary>
        /// 包括敏感数据在内的完整用户信息的加密数据
        /// </summary>
        public string encryptedData { set; get; }
        /// <summary>
        /// 加密算法的初始向量
        /// </summary>
        public string iv { set; get; }
        /// <summary>
        /// 登录时获取的 code
        /// </summary>
        public string js_code { set; get; }
    }
}
